package t2;

public class CatTest {



    public static void main(String[] args) {
        Cat c=new Cat();
        c.name="小白";
        c.age=2;

        Cat c1=new Cat("小花");

        c1.age=3;

        c.showInfo(c1);

        Cat c2=c.showInfo("小黑",2,"公",10);

        System.out.println(c2.name);


    }
}
